package com.xhtt.modules.inspection.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.xhtt.common.utils.DoubleInfo;
import com.xhtt.modules.inspection.entity.InsClassesTeamDetail;
import org.apache.ibatis.annotations.Param;

import java.time.LocalDateTime;
import java.util.List;

/**
 * <p>
 * 巡检-排班管理-班组 Mapper 接口
 * </p>
 *
 * @author xj
 * @since 2019-01-29
 */
public interface InsClassesTeamDetailMapper extends BaseMapper<InsClassesTeamDetail> {

    List<DoubleInfo<String, String>> getClassesByTeamId(@Param("teamId") Integer teamId);

    List<LocalDateTime> getDatesByTeamId(@Param("teamId") Integer teamId);

    List<InsClassesTeamDetail> queryClassesByMonth(@Param("month") String month);

    Integer getShiftType(@Param("teamId")Integer teamId, @Param("date")String date);

    InsClassesTeamDetail getAgoByTaskId(@Param("taskId")Integer taskId);
}
